﻿using System.Data;

namespace Library.OrmEnterpriseEntity.TableInfo {
	///<summary>
	///</summary>
	public interface IColumnView {
		/// <summary>
		/// Check value is assigned for do update/insert action
		/// </summary>
		bool ForceHasValue { get; }
		/// <summary>
		/// Value is unique per row type?
		/// </summary>
		bool Unique { get;  }
		/// <summary>
		/// Column name
		/// </summary>
		string ColumnName { get; }
		
		/// <summary>
		/// Is unique all row type/
		/// </summary>
		bool IsKey { get; }

		///<summary>
		///</summary>
		DbTableView TableView { get; }
		/// <summary>
		/// Column data type in DB
		/// </summary>
		DbType DbType { get; }
		/// <summary>
		/// 
		/// </summary>
		int ColumnIndex { get; }
	}
}
